<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no">
<meta name="format-detection" content="telephone=no">
<meta name="wap-font-scale" content="no">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="data-spm" content="a3126">
<meta name="aplus-touch" content="1">
<meta name="aplus-terminal" content="1">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> 
<title>笑话</title>
<link rel="stylesheet" type="text/css" href="css/joke.css">
</head>

<body>
<header>
<label><a href="/add">添加</a></label>
<ruby>
<?php
$str = '<a href="/accounts/signin">登录</a>';
if ($auth) {
	$str = '<a href="/accounts/logout">退出</a>';
}
echo $str;
?>
</ruby>
<h1>笑话</h1>
</header>

<ol>
<?php
$li = '';
foreach ($all as $key => $value) {
	$content = nl2br($value->content);
    $li .= "<li>$content</li>";
}
echo $li;
?>
</ol>
</body>
</html>
